package com.witsight.platform.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.domain.AuditorAware;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.security.core.userdetails.UserDetails;

/**   
 * 说明：Activating auditing via Java configuration
 * https://docs.spring.io/spring-data/jpa/docs/1.11.7.RELEASE/reference/html/#jpa.query-methods.named-queries
 * 
 * @Title: JpaAuditingConfig.java 
 * @Package com.witsight.platform.config 
 * @See: {@link JpaAuditingAutoConfig}
 * Copyright: Copyright (c) 2017
 * Company:sany huax witsight team by product
 * @author: penght  
 * @date: 2017年9月19日 下午3:14:22 
 * @version: V1.0
 *
 */
@Configuration
@EnableJpaAuditing
@ConditionalOnClass({UserDetails.class, AuditorAware.class})
public class JpaAuditingAutoConfig {

}
